.class Lcom/nemustech/regina/ElementWorkspaceSwitcher$3$1;
.super Ljava/lang/Object;
.source "ElementWorkspaceSwitcher.java"

# interfaces
.implements Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->onEffectFinish(Lcom/nemustech/tiffany/world/TFObject;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;

.field final synthetic val$workspace:Lcom/nemustech/regina/RGWorkspace;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;Lcom/nemustech/regina/RGWorkspace;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 239
    iput-object p1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3$1;->this$1:Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;

    iput-object p2, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3$1;->val$workspace:Lcom/nemustech/regina/RGWorkspace;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onEffectFinish(Lcom/nemustech/tiffany/world/TFObject;)V
    .locals 4
    .parameter "object"

    .prologue
    const/4 v3, 0x0

    const/4 v2, 0x1

    .line 242
    const-string v0, "ElementWorkspaceSwitcher"

    const-string v1, "RGWorkspaceHolder unlocked"

    invoke-static {v0, v1, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 243
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3$1;->this$1:Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;

    iget-object v0, v0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$200(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/nemustech/regina/ReginaLauncher;->setForegroundVisibility(Z)V

    .line 244
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3$1;->val$workspace:Lcom/nemustech/regina/RGWorkspace;

    invoke-virtual {v0, v3}, Lcom/nemustech/regina/RGWorkspace;->convertToElementObjects(Z)V

    .line 245
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3$1;->this$1:Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;

    iget-object v0, v0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$600(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/RGWorkspaceHolder;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/nemustech/regina/RGWorkspaceHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/nemustech/tiffany/world/TFObject;->setVisibility(Z)V

    .line 246
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3$1;->this$1:Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;

    iget-object v0, v0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$600(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/RGWorkspaceHolder;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/nemustech/regina/RGWorkspaceHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v0

    check-cast v0, Lcom/nemustech/regina/RGWorkspace;

    invoke-virtual {v0}, Lcom/nemustech/regina/RGWorkspace;->getWorkspaceView()Lcom/nemustech/regina/WorkspaceView;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/nemustech/regina/WorkspaceView;->dispatchDisplayVisibility(Z)V

    .line 247
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3$1;->this$1:Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;

    iget-object v0, v0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$600(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/RGWorkspaceHolder;

    move-result-object v0

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/RGWorkspaceHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/nemustech/tiffany/world/TFObject;->setVisibility(Z)V

    .line 248
    const-string v0, "ElementWorkspaceSwitcher"

    const-string v1, "foreground O"

    invoke-static {v0, v1, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 249
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3$1;->this$1:Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;

    iget-object v0, v0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$800(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Landroid/os/Handler;

    move-result-object v0

    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3$1;->this$1:Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;

    iget-object v1, v1, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v1}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$700(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Ljava/lang/Runnable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 250
    return-void
.end method
